home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gpp-1_42.lha / g++-1.42.0 / flags.h < prev    next >
C/C++ Source or Header  |  1991-10-19  |  6KB  |  213 lines

  1. /* Compilation switch flag definitions for GNU CC.
  2.    Copyright (C) 1987, 1988 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 1, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Name of the input .c file being compiled.  */
  21. extern char *main_input_filename;
  22.  
  23. /* 1 => write gdb debugging output (using symout.c).
  24.    2 => write dbx debugging output (using dbxout.c).
  25.    3 => write sdb debugging output (using sdbout.c).  */
  26. enum debugger { NO_DEBUG = 0, GDB_DEBUG = 1, DBX_DEBUG = 2, SDB_DEBUG = 3,
  27.         EXTENDED_DBX_DEBUG = 4, LINENO_DEBUG };
  28.  
  29. extern enum debugger write_symbols;
  30.  
  31. /* Nonzero means use GDB-only extensions of DBX format.  */
  32. extern int use_gdb_dbx_extensions;
  33.  
  34. /* Nonzero means do optimizations.  -opt.  */
  35.  
  36. extern int optimize;
  37.  
  38. /* Nonzero means do stupid register allocation.  -noreg.
  39.    Currently, this is 1 if `optimize' is 0.  */
  40.  
  41. extern int obey_regdecls;
  42.  
  43. /* Don't print functions as they are compiled and don't print
  44.    times taken by the various passes.  -quiet.  */
  45.  
  46. extern int quiet_flag;
  47.  
  48. /* Don't print warning messages.  -w.  */
  49.  
  50. extern int inhibit_warnings;
  51.  
  52. /* Do print extra warnings (such as for uninitialized variables).  -W.  */
  53.  
  54. extern int extra_warnings;
  55.  
  56. /* Nonzero to warn about unused local variables.  */
  57.  
  58. extern int warn_unused;
  59.  
  60. /* Nonzero means warn about all declarations which shadow others.   */
  61.  
  62. extern int warn_shadow;
  63.  
  64. /* Warn if a switch on an enum fails to have a case for every enum value.  */
  65.  
  66. extern int warn_switch;
  67.  
  68. /* Warn if a type conversion is done that might have confusing results.  */
  69.  
  70. extern int warn_conversion;
  71.  
  72. /* Nonzero means warn about any identifiers that match in the first N
  73.    characters.  The value N is in `id_clash_len'.  */
  74.  
  75. extern int warn_id_clash;
  76. extern int id_clash_len;
  77.  
  78. /* Nonzero means warn if inline function is too large.  */
  79.  
  80. extern int warn_inline;
  81.  
  82. /* Nonzero if generating code to do profiling.  */
  83.  
  84. extern int profile_flag;
  85.  
  86. /* Nonzero if generating code to do profiling on the basis of basic blocks.  */
  87.  
  88. extern int profile_block_flag;
  89.  
  90. /* Nonzero for -pedantic switch: warn about anything
  91.    that standard C or C++ forbids.  */
  92.  
  93. extern int pedantic;
  94.  
  95. /* Now the symbols that are set with `-f' switches.  */
  96.  
  97. /* Nonzero means `char' should be signed.  */
  98.  
  99. extern int flag_signed_char;
  100.  
  101. /* Nonzero means give an enum type only as many bytes as it needs.  */
  102.  
  103. extern int flag_short_enums;
  104.  
  105. /* Nonzero for -fcaller-saves: allocate values in regs that need to
  106.    be saved across function calls, if that produces overall better code.
  107.    Optional now, so people can test it.  */
  108.  
  109. extern int flag_caller_saves;
  110.  
  111. /* Nonzero for -fpcc-struct-return: return values the same way PCC does.  */
  112.  
  113. extern int flag_pcc_struct_return;
  114.  
  115. /* Nonzero for -fforce-mem: load memory value into a register
  116.    before arithmetic on it.  This makes better cse but slower compilation.  */
  117.  
  118. extern int flag_force_mem;
  119.  
  120. /* Nonzero for -fforce-addr: load memory address into a register before
  121.    reference to memory.  This makes better cse but slower compilation.  */
  122.  
  123. extern int flag_force_addr;
  124.  
  125. /* Nonzero for -fdefer-pop: don't pop args after each function call;
  126.    instead save them up to pop many calls' args with one insns.  */
  127.  
  128. extern int flag_defer_pop;
  129.  
  130. /* Nonzero for -ffloat-store: don't allocate floats and doubles
  131.    in extended-precision registers.  */
  132.  
  133. extern int flag_float_store;
  134.  
  135. /* Nonzero for -fcombine-regs:
  136.    allow instruction combiner to combine an insn
  137.    that just copies one reg to another.  */
  138.  
  139. extern int flag_combine_regs;
  140.  
  141. /* Nonzero enables strength-reduction in loop.c.  */
  142.  
  143. extern int flag_strength_reduce;
  144.  
  145. /* Nonzero for -fcse-follow-jumps:
  146.    have cse follow jumps to do a more extensive job.  */
  147.  
  148. extern int flag_cse_follow_jumps;
  149.  
  150. /* Nonzero for -fwritable-strings:
  151.    store string constants in data segment and don't uniquize them.  */
  152.  
  153. extern int flag_writable_strings;
  154.  
  155. /* Nonzero means don't put addresses of constant functions in registers.
  156.    Used for compiling the Unix kernel, where strange substitutions are
  157.    done on the assembly output.  */
  158.  
  159. extern int flag_no_function_cse;
  160.  
  161. /* Nonzero for -fomit-frame-pointer:
  162.    don't make a frame pointer in simple functions that don't require one.  */
  163.  
  164. extern int flag_omit_frame_pointer;
  165.  
  166. /* Nonzero to inhibit use of define_optimization peephole opts.  */
  167.  
  168. extern int flag_no_peephole;
  169.  
  170. /* Nonzero means all references through pointers are volatile.  */
  171.  
  172. extern int flag_volatile;
  173.  
  174. /* Nonzero means make functions that look like good inline candidates
  175.    go inline.  */
  176.  
  177. extern int flag_inline_functions;
  178.  
  179. /* Nonzero for -fkeep-inline-functions: even if we make a function
  180.    go inline everywhere, keep its defintion around for debugging
  181.    purposes.  */
  182.  
  183. extern int flag_keep_inline_functions;
  184.  
  185. /* Nonzero if we are only using compiler to check syntax errors.  */
  186.  
  187. extern int flag_syntax_only;
  188.  
  189. /* Nonzero means make the text shared if supported.  */
  190.  
  191. extern int flag_shared_data;
  192.  
  193. /* Nonzero means put things in delayed-branch slots if supported. */
  194.  
  195. extern int flag_delayed_branch;
  196.  
  197. /* Nonzero means do basic-block instruction scheduling.  */
  198.  
  199. extern int flag_schedule_insns;
  200.  
  201. /* Other basic status info about current function.  */
  202.  
  203. /* Nonzero means current function must be given a frame pointer.
  204.    Set in stmt.c if anything is allocated on the stack there.
  205.    Set in reload1.c if anything is allocated on the stack there.  */
  206.  
  207. extern int frame_pointer_needed;
  208.  
  209. /* Nonzero if function being compiled receives nonlocal gotos
  210.    from nested functions.  */
  211.  
  212. extern int current_function_has_nonlocal_label;
  213.